package com.ruoyi.web.mapper.warning;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.web.domain.warning.WarningFactorRecord;
import com.ruoyi.web.pojo.request.warning.WarningFactorRecordRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预警记录 Mapper 接口
 * @author fwx
 * @since 2024-01-30 15:08:07
 */
@Mapper
public interface WarningFactorRecordMapper extends BaseMapper<WarningFactorRecord> {

    /**
     * @desc  查询最新的预警记录
     * @author fwx 2024/2/21 15:48
     **/
    public List<WarningFactorRecord> getNewList();

    /**
     * @desc  查询设备各个因子的最新的记录
     * @author fwx 2024/4/22 13:55
     **/
    public List<WarningFactorRecord>  getLastRecord(@Param("request") WarningFactorRecordRequest request);
}
